<!DOCTYPE html>
<html>
<head>
<title>设备信息表</title>
<#include "/header.html">
</head>
<body>
	<div id="rrapp" v-cloak>
		<div v-show="showList">
			<div class="grid-btn"></div>
			<table id="jqGrid"></table>
			<div id="jqGridPager"></div>
		</div>

		<div v-show="!showList" class="panel panel-default">
			<div class="panel-heading">{{title}}</div>
			<form class="form-horizontal">
				<div class="form-group">
					<div class="col-sm-2 control-label">设备的名字</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.name" placeholder="设备的名字" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">采集周期</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.cycle" placeholder="采集周期" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">说明</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.remark" placeholder="说明" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">设备类型 （0表示默认）</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.equipmentType"
							placeholder="设备类型 （0表示默认）" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">所属的IOServer的id</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.ioserverId"
							placeholder="所属的IOServer的id" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">是否启用（0 未启用 1 已启用）</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.enable"
							placeholder="是否启用（0 未启用 1 已启用）" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label">是否已删除（0 表示未删除 1 表示已删除 ）</div>
					<div class="col-sm-10">
						<input type="text" class="form-control"
							v-model="iotsEquipmentInfo.isdel"
							placeholder="是否已删除（0 表示未删除  1 表示已删除 ）" />
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-2 control-label"></div>
					<input type="button" class="btn btn-primary" @click="saveOrUpdate"
						value="确定" /> &nbsp;&nbsp;<input type="button"
						class="btn btn-warning" @click="reload" value="返回" />
				</div>
			</form>
		</div>
	</div>

	<script
		src="${request.contextPath}/statics/js/modules/iots/iotsequipmentinfo.js?_${.now?long}"></script>
</body>
</html>